#!/bin/bash

# 仓库配置
REPO="git@gitee.com:DongSongg/weekly.git"

# 提交信息
COMMIT_MSG="更新周报文档"

echo "🚀 开始提交到仓库..."

# 添加所有文件并提交
git add . && git commit -m "$COMMIT_MSG $(date '+%Y-%m-%d %H:%M:%S')"

# 推送到仓库
echo "📁 推送到仓库..."
git push $REPO master && echo "✅ 仓库推送成功" || echo "❌ 仓库推送失败"

echo "🎉 仓库推送完成！"
